import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

// 1、添加资源和图片

//加载文本配置文件
import 'dart:async' show Future;
import 'package:flutter/services.dart' show rootBundle;

Future<String> loadAsset() async {
  return await rootBundle.loadString('assets/config.json');
}

